package VO
{
	public class UserResourceVO
	{
		private var _money:int;
		private var _resource_ore:Array = new Array();
		private var _resource_senior_ore:Array = new Array();
		private var _resource_food:Array = new Array();
		private var _resource_senior_food:Array = new Array();
		
		public function UserResourceVO()
		{
			//初始化
			_money = 0;
			//二维数组 【资源名，资源数量】
			_resource_ore.push(["0",0], ["0",0], ["0",0], ["0",0], ["0",0], ["0",0]);
			_resource_senior_ore.push(["0",0], ["0",0], ["0",0], ["0",0], ["0",0], ["0",0]);
			_resource_food.push(["0",0], ["0",0], ["0",0], ["0",0], ["0",0], ["0",0]);
			_resource_senior_food.push(["0",0], ["0",0], ["0",0], ["0",0], ["0",0], ["0",0]);
		}
		
		//相当于赋值操作
		public function setUserResourceVO(value:UserResourceVO):void
		{
			_money = value.money;
			_resource_ore = value.resource_ore;
			_resource_senior_ore = value.resource_senior_food;
			_resource_food = value.resource_food;
			_resource_senior_food = value.resource_senior_food;
		}
		
		public function get money():int
		{
			return _money;
		}
		
		public function set money(value:int):void
		{
			_money = value;
		}
		
		public function get resource_ore():Array
		{
			return _resource_ore;
		}
		
		public function set resource_ore(value:Array):void
		{
			_resource_ore = value;
		}
		
		public function get resource_senior_ore():Array
		{
			return _resource_senior_ore;
		}
		
		public function set resource_senior_ore(value:Array):void
		{
			_resource_senior_ore = value;
		}
		
		public function get resource_food():Array
		{
			return _resource_food;
		}
		
		public function set resource_food(value:Array):void
		{
			_resource_food = value;
		}
		
		public function get resource_senior_food():Array
		{
			return _resource_senior_food;
		}
		
		public function set resource_senior_food(value:Array):void
		{
			_resource_senior_food = value;
		}
		
	}
}